/*
 * @Author: Suihen 3307940550@qq.com
 * @Date: 2025-03-13 10:20:06
 * @LastEditors: Suihen 3307940550@qq.com
 * @LastEditTime: 2025-03-20 09:48:03
 * @FilePath: \exam\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter,createWebHistory } from "vue-router"






const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path: '/',
            redirect: '/login',
        },
        {
            path: '/login',
            name: 'Login',
            component: () => import('../components/StuLogin.vue')
        },
        {
            path: '/register',
            name: 'Register',
            component: () => import('../components/register.vue')
        },
        {
            path: '/main',
            name: 'Main',
            component: () => import('../components/main.vue')
        },
        
        
    ]
})

export default router